package com.cyh.core.framework.repository.dictionary;


import com.cyh.core.framework.repository.base.DefaultRepository;
import com.cyh.core.framework.domain.entity.Dictionary;

import javax.annotation.Resource;
import java.util.List;
import java.util.Optional;

/**
 * @Author: yanhang_chen
 * @Date: 2020/9/4 16:06
 * 静态数据库字典资源
 */

@Resource
public interface DictionaryRepository extends DefaultRepository<Dictionary, String> {

    public List<Dictionary> findByKind(String kind);

    public Optional<Dictionary> findById(Integer id);

    public Optional<Dictionary> findByKindAndCode(String kind,String code);

}
